package com.wgchao.identityrightsmanagement.domain.organization.model;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName: ResetAccountOfDepartmentService
 * @author: wgchao
 * @createTime: 2020/6/27 4:38 PM
 * @Description: 重置账户部门
 */
@Component
public class ResetAccountOfDepartmentService {

    public List<Account> resetAccountOfDepartment(List<Account> accounts) {
        for(Account account : accounts){
            account.setDepartmentCode(null);
        }
        return accounts;
    }

}
